<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
    <script language="javascript" type="text/javascript">
    function del(id){
    	if(!confirm("您确定删除该角色")){
	     	return false;
		}else{
			window.location.href="${base}/admin/adminroledel.jhtml?roleid=" + id;
		}
	}
    </script>
	<link rel="STYLESHEET" type="text/css" href="${base}/res/admin/css/tab.css"/>
	<link rel="StyleSheet" href="${base}/res/comm/css/ctrl/tabletree4j.css" type="text/css" />
	<script type="text/javascript" src="${base}/res/comm/js/ctrl/TableTree4J.js"></script>
<script type="text/javascript">
	var gridTree="";	
	function showGridRoleTree(){
		gridTree=new TableTree4J("gridTree","../../");
		gridTree.setImgRootPath("${base}/res/comm/js/ctrl/img/");
		gridTree.tableDesc="<table width=\"99%\" class=\"GridView\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CECECE\">";	
		var headerDataList=new Array("角色名","描述","所属角色","创建日期","操作");
		var widthList=new Array("25%","30%","15%","15%","15%");
		gridTree.setHeader(headerDataList,-1,widthList,true,"GridHead","","","","");				
		gridTree.gridHeaderColStyleArray=new Array("","","","","centerClo");
		gridTree.gridDataCloStyleArray=new Array("","","","","centerClo");	
		var dataList="";
		<#list adminRoleList! as list>
			dataList=new Array('${list.name}','${list.descs!"&nbsp;"}','${(list.pname)!""}','${(list.creattime)!"&nbsp;"}',
				'<a href="${base}/admin/adminroleperm.jhtml?roleid=${list.roleid}">授权</a>&nbsp;|&nbsp;<a href="${base}/admin/adminroleinput.jhtml?roleid=${list.roleid}">编辑</a>&nbsp;|&nbsp;<a href="#" onclick="del(${list.roleid})">删除</a>');
			gridTree.addGirdNode(dataList,${list.roleid},${list.proleid},"",2);
		</#list>
        gridTree.printTableTreeToElement("gridTreeDiv");	
}
</script>
</head>
  <body style="overflow:auto;">
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="30">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="30"><img src="${base}/res/admin/images/tab_03.gif" width="15" height="30" /></td>
	        <td background="${base}/res/admin/images/tab_05.gif">
	        
	       		<table width="100%">
	       			<tr><td><img src="${base}/res/admin/images/311.gif" width="16" height="16" /> <span class="STYLE4" style="16">角色管理列表</span></td><td align="right"><a href="${base}/admin/adminroleinput.jhtml">增加角色</a></td></tr>
	       		</table> 
	       	
	        </td>
	        <td width="14"><img src="${base}/res/admin/images/tab_07.gif" width="14" height="30" /></td>
	      </tr>
	    </table>
	    </td>
	  </tr>
	   <tr>
	    <td>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	    	<td width="9" background="${base}/res/admin/images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#e5f1d6">
	    		<div align="right" width="95%">
				</div>
				<div id="gridTreeDiv">
				</div>
			</td>
		 	<td width="9" background="${base}/res/admin/images/tab_16.gif">&nbsp;</td>
	   
   		</tr>
   	
   		</table>
   		</td>
   		
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="${base}/res/admin/images/tab_20.gif" width="15" height="29" /></td>
        <td background="${base}/res/admin/images/tab_21.gif">&nbsp;</td>
        <td width="14"><img src="${base}/res/admin/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>	
		
<script type="text/javascript">
	showGridRoleTree()
	gridTree.openAllNodes()
</script>
 </body>
</html>